package com.diandian.backend.client.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.diandian.backend.client.dto.ClientInfoDetailParamDTO;

import java.io.Serializable;
import java.util.Date;

public class ClientInfoDetailParam implements Serializable {

	private Long id;
	private String clientId;
	private String clientKey;
	private String clientSecret;
	private String remark;
	private String status;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date startTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date endTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	private String createUserId;
	private String createUserName;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	private String updateUserId;
	private String updateUserName;
	private Integer del;

	public ClientInfoDetailParamDTO toDTO(){
		ClientInfoDetailParamDTO dto = new ClientInfoDetailParamDTO();
		dto.setId(this.id);
		dto.setClientId(this.clientId);
		dto.setClientKey(this.clientKey);
		dto.setClientSecret(this.clientSecret);
		dto.setRemark(this.remark);
		dto.setStatus(this.status);
		dto.setStartTime(this.startTime);
		dto.setEndTime(this.endTime);
		dto.setCreateTime(this.createTime);
		dto.setCreateUserId(this.createUserId);
		dto.setCreateUserName(this.createUserName);
		dto.setUpdateTime(this.updateTime);
		dto.setUpdateUserId(this.updateUserId);
		dto.setUpdateUserName(this.updateUserName);
		dto.setDel(this.del);
		return dto;
	}

	public Long getId() {
		return id;
	}
	public Long setId(Long id) {
		return this.id = id;
	}
	public String getClientId() {
		return clientId;
	}
	public String setClientId(String clientId) {
		return this.clientId = clientId;
	}
	public String getClientKey() {
		return clientKey;
	}
	public String setClientKey(String clientKey) {
		return this.clientKey = clientKey;
	}
	public String getClientSecret() {
		return clientSecret;
	}
	public String setClientSecret(String clientSecret) {
		return this.clientSecret = clientSecret;
	}
	public String getRemark() {
		return remark;
	}
	public String setRemark(String remark) {
		return this.remark = remark;
	}
	public String getStatus() {
		return status;
	}
	public String setStatus(String status) {
		return this.status = status;
	}
	public Date getStartTime() {
		return startTime;
	}
	public Date setStartTime(Date startTime) {
		return this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public Date setEndTime(Date endTime) {
		return this.endTime = endTime;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public Date setCreateTime(Date createTime) {
		return this.createTime = createTime;
	}
	public String getCreateUserId() {
		return createUserId;
	}
	public String setCreateUserId(String createUserId) {
		return this.createUserId = createUserId;
	}
	public String getCreateUserName() {
		return createUserName;
	}
	public String setCreateUserName(String createUserName) {
		return this.createUserName = createUserName;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public Date setUpdateTime(Date updateTime) {
		return this.updateTime = updateTime;
	}
	public String getUpdateUserId() {
		return updateUserId;
	}
	public String setUpdateUserId(String updateUserId) {
		return this.updateUserId = updateUserId;
	}
	public String getUpdateUserName() {
		return updateUserName;
	}
	public String setUpdateUserName(String updateUserName) {
		return this.updateUserName = updateUserName;
	}
	public Integer getDel() {
		return del;
	}
	public Integer setDel(Integer del) {
		return this.del = del;
	}
}
